package m202406.d06;

import java.util.*;
import java.util.stream.Collectors;

/**
 * @@author: 爱做梦的锤子
 * @date: 2024/6/6 22:35
 */
public class OD_T3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s1 = scanner.nextLine();
        String s2 = scanner.nextLine();
        List<Set<String>> list = new ArrayList<>();
        while (scanner.hasNextLine()) {
            list.add(Arrays.stream(scanner.nextLine().split(" ")).collect(Collectors.toSet()));
        }
        for (Set<String> set : list) {
            if (set.contains("(***)")) {
                System.out.println("True");
                System.out.println("(***)");
                return;
            }
        }

        List<String> replace1 = new ArrayList<>();

    }
}
